//
//  BSKWeatherTableViewCell.m
//  MicroMemory
//
//  Created by rimi on 16/7/15.
//  Copyright © 2016年 BlueSky. All rights reserved.
//

#import "BSKWeatherTableViewCell.h"
#import "BSKTheme.h"

@interface BSKWeatherTableViewCell ()
@property(nonatomic,strong) UIImageView * weatherImageView;
@property(nonatomic,strong) UIView * bgView;
@end
@implementation BSKWeatherTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {
		self.selectionStyle = UITableViewCellSelectionStyleNone;
		_weatherImageView = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 30, 30)];
		_bgView = [[UIView alloc]initWithFrame:CGRectMake(0, 10, 40, 40)];
		_bgView.backgroundColor = [BSKTheme curentTheme].themeColor;
		_bgView.layer.cornerRadius = 20;
		[_bgView addSubview:_weatherImageView];
		self.backgroundColor = [UIColor clearColor];
		[self addSubview:_bgView];
	}
	return self;
}

-(void)setWeatherImage:(UIImage *)weatherImage{
	_weatherImageView.image = weatherImage;
	_weatherImage = weatherImage;
}
@end
